class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.integer :user_source
      t.integer :postal_id
      t.string :name
      t.string :stripped_name
      t.string :email
      t.string :password
      t.string :type
      t.string :mobile_no
      t.string :verification_code
      t.integer :status, :default => 0
      t.datetime :date_of_birth
      t.integer :gender, :default => 0
      t.integer :recieve_offers, :dafault => 0
      t.boolean  :contact_by_phone, :default  => true
      t.boolean  :contact_by_email, :default  => true
      t.boolean  :advertisment_match, :default  => true
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
